<?php
error_reporting(0);// 这行是屏蔽所有可能出现的错误信息
header("Content-Type: text/html; charset=utf-8");
if( !headers_sent() && extension_loaded("zlib") && strstr($_SERVER["HTTP_ACCEPT_ENCODING"],"gzip")){ ini_set('zlib.output_compression', 'On');ini_set('zlib.output_compression_level', '4');}
define('ROOT_PATH',dirname(__FILE__));
@include (ROOT_PATH.'/inc/ff6.config.php');@include (ROOT_PATH.'/data/ff6.ads.php');@include (ROOT_PATH.'/inc/global.php');
$ip = get_ip();
if($ff6['pcdomain'] == 'localhost' && $ip != '::1'){
	echo '<script>alert("亲！你首先需要进入后台修改网站域名哦！！！");location.href="http://'.$_SERVER['SERVER_NAME'].'/admin/";</script>';
} 
if(strpos('|'.$ff6['ip'].'|','|'.$ip.'|')>-1){
   echo back404();
   exit;	
}
isset($_GET['id']) ? $mode='class' : (isset($_GET['k']) ? $mode='search' : (isset($_GET['md']) ? $mode='show' : (isset($_GET['src']) ? $mode='sources' : (isset($_GET['aj']) ? $mode='axjx' : $mode='index'))));
$mode_arr = array('m_index','m_class','m_search','m_show','m_sources','m_axjx');
if(in_array('m_'.$mode,$mode_arr)){
@include(ROOT_PATH.'/data/config.php');@include(ROOT_PATH.'/view/'.$ff6['model'].'/m_'.$mode.'.php');
}else{
	echo back404();
}
?>